package com.jinunn.system.model.params;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author Jindun
 * @version RoleParam.java, v0.1 2024年 07⽉ 12⽇  下午5:41 Jindun Exp $
 */
@Data
@Accessors(chain = true)
@Schema(description = "角色表单对象")
public class RoleParam implements Serializable {

    @Schema(description="角色ID")
    private Long id;

    @Schema(description="角色名称")
    @NotBlank(message = "角色名称不能为空")
    private String name;

    @Schema(description="角色编码")
    @NotBlank(message = "角色编码不能为空")
    private String code;

    @Schema(description="排序")
    private Integer sort;

    @Schema(description="角色状态(1-正常；0-停用)")
    private Integer status;

    @Schema(description="数据权限")
    private Integer dataScope;
}
